<?php
$table = $this->uri->segment(3,0);
$url_ajax = base_url().'admin/ajax_field/order';
$url_ajax_sotrang = base_url().'admin/ajax_field/num';
$url_ajax_pub = base_url().'admin/ajax_field/pub/'.$table;
$url_ajax_where = base_url().'admin/ajax_field/where/'.$table;
?>
<div id="main-content">
    <div class="container">
        <div class="row">
            <p style="font-weight:bold;font-size:14px;padding:20px;">Email gia sư</p>
    		<?php
                $mail=$this->Admin_model->get_data('users',array('id !='=>1,'activated'=>1,'type'=>1,'publish'=>1),'','','','email');
                if(!empty($mail)){
                    echo '<textarea style="width:100%;height:100px;border:1px solid red">';
                    foreach($mail as $dat){
                        echo $dat->email;
                        echo '; ';
                    }
                    echo '</textarea>';
                }
            ?>
   		</div>
        <div class="row">
            <p style="font-weight:bold;font-size:14px;padding:20px;">Email học sinh</p>
    		<?php
                $mail=$this->Admin_model->get_data('users',array('id !='=>1,'activated'=>1,'type'=>0,'publish'=>1),'','','','email');
                if(!empty($mail)){
                    echo '<textarea style="width:100%;height:100px;border:1px solid red">';
                    foreach($mail as $dat){
                        echo $dat->email;
                        echo '; ';
                    }
                    echo '</textarea>';
                }
            ?>
   		</div>
    	<div class="row">
    		<div id="content" class="col-lg-12">
                    <div class="row">
							<div class="col-sm-12">
								<div class="page-header">
									<div class="clearfix">
										<h3 class="content-title pull-left">Thông tin trang web</h3>
									</div>
								</div>
							</div>
					</div>
                    <!-- Content -->
                    <div class="row">
							<!-- WELLS -->
                            <?php $setting = $this->common_model->getone('setting',array('id'=>1)); ?>
							<div class="col-md-6">
								<div class="box border">
									<div class="box-title">
										<h4><i class="fa fa-bitbucket"></i>Thông tin trang web</h4>
										<div class="pull-right">
                                            <a href="<?php echo base_url().'admin/xuly/setting/edit/1'; ?>" title="Sửa" class="btn btn-success"><i class="fa fa-edit"></i>&nbsp;&nbsp;&nbsp;Sửa</a>
                                        </div>
                                        <div class="clearfix"></div>
									</div>
									<div class="box-body">
                                        <div class="well">
                                            <h4 class="orange">Logo</h4> 
                                            <?php echo '<img src="'.$setting->logo.'" />'; ?>
                                        </div>
										<div class="well well-sm">
                                            <h4 class="orange">Url Trang Web</h4> 
                                            <?php echo $setting->url; ?>
                                        </div>
                                        <div class="well well-sm">
                                            <h4 class="orange">Mô tả trang web</h4> 
                                            <?php echo $setting->metades; ?>
                                        </div>
                                        <div class="well well-sm">
                                            <h4 class="orange">Từ khóa seo</h4> 
                                            <?php echo $setting->metakey; ?>
                                        </div>
									</div>
								</div>
							</div>
							<!-- /WELLS -->
                            	<div class="col-md-6">
								<div class="box border">
									<div class="box-title">
										<h4><i class="fa fa-bitbucket"></i>Thông tin quản lý</h4>
										<div class="pull-right">
                                            <a href="<?php echo base_url().'admin/xuly/setting/edit/1'; ?>" title="Sửa" class="btn btn-success"><i class="fa fa-edit"></i>&nbsp;&nbsp;&nbsp;Sửa</a>
                                        </div>
                                        <div class="clearfix"></div>
									</div>
									<div class="box-body">
                                        <div class="well">
                                            <h4 class="orange">Đơn vị quản lý</h4> 
                                            <?php echo $setting->master; ?>
                                        </div>
										<div class="well well-sm">
                                            <h4 class="orange">Điện thoại</h4> 
                                            <?php echo $setting->phone; ?>
                                        </div>
                                        <div class="well well-sm">
                                            <h4 class="orange">Email hỗ trợ</h4> 
                                            <?php echo $setting->email; ?>
                                        </div>
                                        <div class="well well-sm">
                                            <h4 class="orange">Fax</h4> 
                                            <?php echo $setting->fax; ?>
                                        </div>
                                        <div class="well well-sm">
                                            <h4 class="orange">HomeMobile</h4> 
                                            <?php echo $setting->homemobile; ?>
                                        </div>
									</div>
								</div>
							</div>
							<!-- /WELLS -->
						</div>
   			</div>

    		</div>
    	</div>
</div>